//
//  UIButton+Category.h
//  XKOneHun
//
//  Created by xyg on 2016/12/9.
//  Copyright © 2016年 xiaokang100. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^tapActionBlock)(UIButton *button);

@interface UIButton (Category)

@property(nonatomic,copy)tapActionBlock actionBlock;




/**
 创建Button,默认字号15,圆角5,字体颜色白色,normal状态主体红背景图片,选中和不可用状态主体灰色背景图片

 @param title 文字
 @return btn
 */
+ (UIButton *)getClickBtnWithTitle:(NSString *)title;



/**
 UIButton
 
 @param font 字号
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithTitle:(NSString *)title
                    titleFont:(CGFloat)font
                   titleColor:(UIColor *)titleColor
                  actionBlock:(tapActionBlock)actionBlock;


/**
 UIButton
 
 @param frame frame
 @param font 字号
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithFrame:(CGRect)frame
                        title:(NSString *)title
                    titleFont:(CGFloat)font
                   titleColor:(UIColor *)titleColor
                  actionBlock:(tapActionBlock)actionBlock;



/**
 UIButton
 
 @param frame frame
 @param font 字号
 @param backgroundColor 背景色
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithFrame:(CGRect)frame
                        title:(NSString *)title
                    titleFont:(CGFloat)font
                   titleColor:(UIColor *)titleColor
              backgroundColor:(UIColor *)backgroundColor
                  actionBlock:(tapActionBlock)actionBlock;



/**
 UIButton
 
 @param frame frame
 @param title 一般文字
 @param font 字号
 @param normalColor 一般文字颜色
 @param highlightColor 高亮文字颜色
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithFrame:(CGRect)frame
                        title:(NSString *)title
                         font:(CGFloat)font
                  normalColor:(UIColor *)normalColor
               highlightColor:(UIColor *)highlightColor
                  actionBlock:(tapActionBlock)actionBlock;


/**
 UIButton
 
 @param frame frame
 @param nomalTitle 一般文字
 @param highlightTitle 高亮文字
 @param font 字号
 @param normalColor 一般文字颜色
 @param highlightColor 高亮文字颜色
 @param backgroundColor 背景色
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithFrame:(CGRect)frame
                   nomalTitle:(NSString *)nomalTitle
               highlightTitle:(NSString *)highlightTitle
                    titleFont:(CGFloat)font
                  normalColor:(UIColor *)normalColor
               highlightColor:(UIColor *)highlightColor
              backgroundColor:(UIColor *)backgroundColor
                  actionBlock:(tapActionBlock)actionBlock;


/**
 UIButton
 
 @param frame frame
 @param nomalTitle 一般文字
 @param highlightTitle 高亮文字
 @param font 字号
 @param normalColor 一般文字颜色
 @param highlightColor 高亮文字颜色
 @param normalImage 一般图片
 @param highlightImage 高亮图片
 @param backgroundColor 背景色
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithFrame:(CGRect)frame
                   nomalTitle:(NSString *)nomalTitle
               highlightTitle:(NSString *)highlightTitle
                    titleFont:(CGFloat)font
                  normalColor:(UIColor *)normalColor
               highlightColor:(UIColor *)highlightColor
                   nomalImage:(NSString *)normalImage
               highlightImage:(NSString *)highlightImage
              backgroundColor:(UIColor *)backgroundColor
                  actionBlock:(tapActionBlock)actionBlock;

/**
 UIButton
 
 @param frame frame
 @param nomalTitle 一般文字
 @param highlightTitle 高亮文字
 @param font 字号
 @param normalColor 一般文字颜色
 @param highlightColor 高亮文字颜色
 @param normalImage 一般图片
 @param highlightImage 高亮图片
 @param backgroundColor 背景色
 @param normalBackgroungImage 一般北京图
 @param highlightBackgroungImage 高亮背景图
 @param actionBlock block
 @return 返回按钮
 */
+ (UIButton *)getBtnWithFrame:(CGRect)frame
                   nomalTitle:(NSString *)nomalTitle
               highlightTitle:(NSString *)highlightTitle
                    titleFont:(CGFloat)font
                  normalColor:(UIColor *)normalColor
               highlightColor:(UIColor *)highlightColor
                   nomalImage:(NSString *)normalImage
               highlightImage:(NSString *)highlightImage
              backgroundColor:(UIColor *)backgroundColor
        normalBackgroungImage:(NSString *)normalBackgroungImage
     highlightBackgroungImage:(NSString *)highlightBackgroungImage
                  actionBlock:(tapActionBlock)actionBlock;


@end
